import request from '@/util/request'

// 查询角色列表
export function insertSampleSet(data) {
    return request({
        url: '/api/sampleSet/insert',
        method: 'POST',
        data: data
    })
}

export function getPage(data) {
    return request({
        url: '/api/sampleSet/getPage',
        method: 'POST',
        data: data
    })
}

export function updateSampleSet(data) {
    return request({
        url: '/api/sampleSet',
        method: 'PUT',
        data: data
    })
}

export function insertSampleItem(data) {
    return request({
        url: 'api/sampleItem/insert',
        method: 'POST',
        data: data
    })
}

export function getSampleSetList(data) {
    return request({
        url: '/api/sampleSet/getList',
        method: 'POST',
        data: data
    })
}

export function getSampleItemListBySampleSetId(sampleSetId) {
    return request({
        url: '/api/sampleItem/getBySampleSetId/'+sampleSetId,
        method: 'POST',
        data: {}
    })
}

export function start(sampleSetId) {
    return request({
        url: '/api/sampleResult/start/'+sampleSetId,
        method: 'Get'
    })
}

export function getSampleResultPageBySampleItemId(data) {
    return request({
        url: '/api/sampleResult/getPage',
        method: 'POST',
        data:data
    })
}


